package com.atguigu.service;

import com.atguigu.pojo.Headline;
import com.atguigu.pojo.vo.PortalVo;
import com.atguigu.utils.Result;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 86135
* @description 针对表【news_headline】的数据库操作Service
* @createDate 2024-01-07 19:23:59
*/
public interface HeadlineService extends IService<Headline> {

    /*
    * 首页数据查询
    * */
    Result findNewsPage(PortalVo portalVo);

    /*
    * 根据id查询详情
    * */
    Result showHeadlineDetail(Integer hid);

    /*
    * 发布头条的方法
    * */
    Result publish(Headline headline,String token);

    /*
    * 修改头条数据
    * */
    Result updateData(Headline headline);
}
